<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>监督管理下的药品品目维护</title>
    <style type="text/css">
        td{
            height: 25px;
            width: 100px;
            border: #3a8ee6 1px solid;

        }
        input{
            height: 21px;
        }
    </style>

    <script type="text/javascript" src="../../js/jquery-3.3.1.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script type="text/javascript" src="../../js/01/daoru/drugf/find.js"></script>
    <script type="text/javascript" src="../../js/01/daoru/drugb/cengci.js"></script>
    <script type="text/javascript" src="../../js/01/daoru/druga/feny.js"></script>
    <script type="text/javascript" src="../../js/01/daoru/daoru.js"></script>
    <script type="text/javascript" src="../../js/fenye/cengci.js"></script>
    <script type="text/javascript">
        $(function () {
            gets()
            //查询所有供应商
            $.ajax({
                url:"/myspringboot/suppliser/selectAll",
                data:"",
                type:"post",
                dataType:"json",
                success:function(result){
                    console.log(result);
                    var result = result.data;
                    var opts = "";
                    for (var i = 0; i < result.length; i++) {
                        var surId = result[i].surId;
                        var surName = result[i].surName;
                        var opt = '<option value="'+surId+'">'+surName+'</option>';
                        opts += opt;
                    }
                    $(".f").append(opts);
                }
            })
        })
    </script>
    <script type="text/javascript">

    </script>
</head>
<body>
<div>
    <table class="" style="border: 1px solid #999;border-collapse:collapse">
        <tr>
            <h3 style="height: 50px" >查询药品交易明细</h3>


        </tr>
        <tr>
            <td>采购单编号：</td>
            <td><input type="text" id="poNumber" value=""></td>
            <td></td>
            <td>采购单名称：</td>
            <td><input type="text" id="poName" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>采购状态：</td>
            <td>
                <select style=" height: 25px; width: 172px;" id="poState">
                    <option value="">请选择</option>
                    <option value="0">审核中</option>
                    <option value="1">审核通过</option>
                    <option value="2">审核未通过</option>
                </select>
            </td>
            <td></td>
            <td>采购医院：</td>
            <td><input type="text" value="" id="hName"></td>
            <td></td>
        </tr>
        <tr>
            <td>供货商：</td>
            <td>
                <select style=" height: 25px; width: 172px;" class="f" id="ghs">
                    <option value="">请选择</option>
                </select>
            </td>
            <td></td>
            <td>统计时间：</td>
            <td><input id="lefTime" style="width: 74px" type="date" value="">至<input id="rightTime" style="width: 74px" type="date" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>药品流水号：</td>
            <td><input type="text"  id="diNumer" value=""></td>
            <td></td>
            <td>通用名：</td>
            <td><input type="text" id="diName" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>剂型：</td>
            <td><input type="text" id="diForm" value=""></td>
            <td></td>
            <td>规格：</td>
            <td><input type="text" id="diSpecifications" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>单位：</td>
            <td><input type="text" id="diUnit" value=""></td>
            <td></td>
            <td>转换系数：</td>
            <td><input type="text" id="diCc" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>生产企业：</td>
            <td><input type="text" id="mfName" value=""></td>
            <td></td>
            <td>商品名：</td>
            <td><input type="text" id="daName" value=""></td>
            <td></td>
        </tr>
        <tr>
            <td>质量层次：</td>
            <td>
                <select style=" height: 25px; width: 172px;" class="c" id="zlcc">
                    <option value="">请选择</option>
                </select>
            </td>
            <td></td>
            <td>药品类别：</td>
            <td>
                <select style=" height: 25px; width: 172px;" class="b" id="yplb">
                    <option value="">请选择</option>
                </select>
            </td>
            <td></td>


        </tr>
    </table>
    <td>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="reset"  onclick="gets()">查询</button>
        <a href="/myspringboot/StatisticsController/findAllExport"><button>导出</button></a>
    </td>
    <br>
    <br>
</div>
<iframe id="iframe" name="rfFrame" src="about:blank" style="display:none;"></iframe>
<div>
    <table ><!--class="a"-->
        <tr>
            <td>序号</td>
            <td>采购医院</td>
            <td>采购单编号</td>
            <td>采购单名称</td>
            <td>开始采购时间</td>
            <td>结束采购时间</td>
            <td>流水号</td>
            <td>通用名</td>
            <td>商品名</td>
            <td>剂型</td>
            <td>规格</td>
            <td>单位</td>
            <td>转换系数</td>
            <td>质量层次</td>
            <td>生产企业</td>
            <td>中标价</td>
            <td>交易价</td>
            <td>采购量</td>
            <td>采购金额</td>
            <td>采购状态</td>
            <td>入库量</td>
            <td>入库金额</td>
        </tr>
        <tbody class="a"></tbody>
    </table>
</div>

<div class="im-page" id="impage">
    <tr>
        <td><button id='first'>首页</button></td>
        <td><button id='before'>上一页</button></td>
        <td>第<span id="pnum"></span>页</td>
        <td>共<span id="ptotal"></span>页</td>
        <td><button  id='next'>下一页</button></td>
        <td><button id='last'>尾页</button></td>
    </tr>
</div>


<!--药品导入模态框  模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    药品品目导入
                </h4>
            </div>

            <form id="btn_re"
                  enctype="multipart/form-data" method="post" accept-charset="utf-8">
                <div class="modal-body">
                    下载导入模板文件 <a href="/myspringboot/DrugInformationController/download">点击下载药品品目导入模板</a>
                    <hr>
                    提示:请下载后在模板文件中录入药品品目信息,在下边的"选择文件"中选择要导入的文件,点击"导入"
                    <input type="file" name="file" accept=".xlsx"><br>
                    <a><button onclick="daoru()" type="submit" value="" class="btn btn-primary">导入</button></a>
                    <a><button class="btn btn-primary">查看导入失败结果</button></a>
                    <a>
                        <button type="button" data-dismiss="modal" class="btn btn-primary">关闭</button>
                    </a>

                </div>
            </form>
            <div class="modal-footer">
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>
</html>
